package com.woniu.mapper.healthSystem;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.woniu.model.healthSystem.entity.User;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 用户表 Mapper 接口
 * </p>
 *
 * @author gb
 * @since 2023-10-19
 */
public interface UserMapperGb extends BaseMapper<User> {

    /**
     * 多条件查询
     */
    List<User> findAll(Map<String,Object> condition);


    /**
     * 查询通过id
     */
    @Select("SELECT * FROM h_user WHERE id=#{id}")
    User findById(Long id);




}
